<!DOCTYPE html>

<html  xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
       xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8">
    <title>Login Page</title>
</head>
<body>
    <form method="post" action="/loginproc">
        <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}">
        username: <input type="text" name="username"><br>
        Passowrd: <input type="password" name="password"><br>
        <img src="/imagecode" />
        <input type="text" name="imagecode"><br>
        <input type="submit" value="Authentication">
    </form>
</body>
</html>